﻿#include "CmdThreeDSurfacePlotSidebarResultDataChanged.h"
#include "CmdThreeDSurfacePlotSidebarResultDataChanged.h"
#include "CmdThreeDSurfacePlotSidebarResultDataChanged.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdThreeDSurfacePlotSidebarResultDataChanged::CmdThreeDSurfacePlotSidebarResultDataChanged()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdThreeDSurfacePlotSidebarResultDataChanged::~CmdThreeDSurfacePlotSidebarResultDataChanged()
    {
    }

    bool CmdThreeDSurfacePlotSidebarResultDataChanged::execute()
    {
        //bool _success = false;
        emit IBaseSignalInstance->signal_threeDSurfacePlotSidebarResultDataChanged(m_windowId, m_resultDataId);
        return true;
    }

    void CmdThreeDSurfacePlotSidebarResultDataChanged::undo()
    {
    }

    void CmdThreeDSurfacePlotSidebarResultDataChanged::redo()
    {
        // execute();
    }

    void CmdThreeDSurfacePlotSidebarResultDataChanged::setThreeDSurfacePlotSidebarResultDataChanged(int windowId, int resultDataId)
    {
        m_windowId = windowId;
        m_resultDataId = resultDataId;
    }

} // namespace PostCommand
